//
//  MZY_collectTableViewCell.m
//  FullHouse
//
//  Created by dllo on 16/3/1.
//  Copyright © 2016年 yy. All rights reserved.
//

#import "MZY_collectTableViewCell.h"

#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation MZY_collectTableViewCell

- (void)dealloc
{
    [self.picImageView release];
    [self.wordLabel release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView{
    self.picImageView = [[UIImageView alloc]init];
    [self.contentView addSubview:self.picImageView];
    [self.picImageView release];
    
    self.wordLabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.wordLabel];
    [self.wordLabel release];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.picImageView.frame = CGRectMake(0, 0, WIDTH / 3, HEIGHT);
    self.wordLabel.frame = CGRectMake(WIDTH / 3 + 20, HEIGHT / 2 - 20, WIDTH / 3 * 2 - 20, 40);
}

@end
